﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Pear.Database.Migrations.Migrations
{
    public partial class v0010 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "Enabled",
                table: "User",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "Enabled",
                table: "SystemDataCategory",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "Enabled",
                table: "SystemData",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "Enabled",
                table: "Security",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "Enabled",
                table: "Role",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 1,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 2,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 1,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 2,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 3,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 4,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 5,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 6,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 7,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 8,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 9,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 10,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 11,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 12,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 13,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 14,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 15,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 16,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 17,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 18,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 19,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 20,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 21,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "SystemData",
                keyColumn: "Id",
                keyValue: 1,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "SystemData",
                keyColumn: "Id",
                keyValue: 2,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "SystemDataCategory",
                keyColumn: "Id",
                keyValue: 1,
                column: "Enabled",
                value: true);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1,
                column: "Enabled",
                value: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Enabled",
                table: "User");

            migrationBuilder.DropColumn(
                name: "Enabled",
                table: "SystemDataCategory");

            migrationBuilder.DropColumn(
                name: "Enabled",
                table: "SystemData");

            migrationBuilder.DropColumn(
                name: "Enabled",
                table: "Security");

            migrationBuilder.DropColumn(
                name: "Enabled",
                table: "Role");
        }
    }
}
